<template>
<h1>EL-下拉选框组件</h1>
  <el-select placeholder="选一个你喜欢的城市" v-model="city"
  style="width: 50%;">
    <el-option label="重庆" value="cq"></el-option>
    <el-option label="石家庄" value="sjz"></el-option>
    <el-option label="武汉" value="wh"></el-option>
    <el-option label="" value="bj">北京</el-option>
  </el-select>
  <h4>提交的值：{{city}}</h4>
</template>
<script setup>
import {ref} from "vue";
const city=ref('wh');
</script>

<style scoped>

</style>